<?php
/* SVN FILE: $Id: index.ctp 11 2009-09-12 23:39:35Z kenreily@gmail.com $ */
/**
 * Short description for file.
 *
 * Long description for file
 *
 * PHP versions 4 and 5
 *
 * Recenseo: Online submission and reviewing for education
 * Copyright 2008-2009, Ken Reily
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * $Date: 2009-09-12 23:39:35 +0000 (Sat, 12 Sep 2009) $
 * $Revision: 11 $
 * $Author: kenreily@gmail.com $
 * $HeadURL: http://recenseo.googlecode.com/svn/trunk/app/views/courses/index.ctp $
 */

  if (count($courses) > 0)
  {
?>
<h3>Please select a course:</h3>
<table>
<?php
    echo $html->tableHeaders(array('Course Name','Term'));
  
    foreach ($courses as $course)
    {
      echo $html->tableCells(
        array(
          $html->link($course['courses']['name'],'/assignments/index/' . $course['courses']['id']),
          $course['courses']['term']));
    }
?>
</table>
<?php
  }
  else
  {
    echo '<p>No course information found.</p>';
  }    
?>